﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SAI
{
    class Metrics
    {
        private int _nodesExpanded;
        private Dictionary<string, int> _dupNodes;
        private double _time;
        private double _size;
        private int _nodesGenerated;
        public int NodesExpanded { get { return _nodesExpanded; } set { _nodesExpanded = value; } }
        public int NodesGenerated { get { return _nodesGenerated; } set { _nodesGenerated = value; } }
        public Dictionary<string, int> DupNodes { get { return _dupNodes; } set { _dupNodes = value; } }
        public double Time { get { return _time; } set { _time = value; } }
        public double Size { get { return _size; } set { _size = value; } }

        public void clearMetrics()
        {
            _nodesExpanded = 0;
            _dupNodes = new Dictionary<string, int>();
            _time = 0;
            _size = 1;
            _nodesGenerated = 1;
        }
    }
}
